Before the installation starts, make sure you have installed Ubuntu18.04 server operating system.
Preparation
Installing docker and docker-compose
- Get following installation packages from https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/.
- docker-ce_19.03.9_3-0_ubuntu-bionic_amd64.deb
- containerd.io_1.2.6-3_amd64.deb
- docker-ce-cli_19.03.9_3-0_ubuntu-bionic_amd64.deb
- Install docker and verify the results by checking its version.
sudo dpkg -i docker-ce-cli_19.03.9_3-0_ubuntu-bionic_amd64.deb
sudo dpkg -i containerd.io_1.2.6-3_amd64.deb
sudo dpkg -i docker-ce_19.03.9_3-0_ubuntu-bionic_amd64.deb
docker --version
- Install docker-compose online and check the installation result.
sudo apt-get install curl
sudo curl -L
"https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
Installing Grapgic Driver
This section focuses on the installation of Nvidia graphic driver. Make sure you have prepared corresponding installation package.
- Open the blacklist.
sudo vi /etc/modprobe.d/blacklist.conf
- Add the following content to disable nouveau, and then save the file.
blacklist nouveau
options nouveau modeset=0
- Update the initial ram file system and reboot the system for the blacklist to take effect,
sudo update-initramfs -u -k all
sudo reboot
- Check the result.
sudo lsmod | grep nouveau
- Download the .run file of the driver you need and put it under /home, make the file executable and then install the driver.
sudo chmod a+x NVIDIA-Linux-x86_64-460.84.run
sudo ./NVIDIA-Linux-x86_64-460.84.run –no-opengl-files -no-x-check -no-nouveau-check
During the installation, when the nvidia-xconfig is propmted, install it if your computer has only one graphic card. You can use lshw -numeric -c display
to check the graphic cards.
- Check whether the installation is complete.
nvidia-smi
If any issues come up during the installation, use sudo ./NVIDIA-Linux-x86_64-430.40.run –uninstall
to uninstall the driver.
- Follow the instructions to install nvidia-docker2.
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd
Installing Algorithm Image
Get the algorithm image packages from technical support based on your graphic card.
Grahic Card Algorithm Image Package GTX10, RTX20, Tesla T4, Quadro P series X-Edge-cuda10.tar RTX30, RTX40, Tesla A40,Tesla A100 X-Edge-cuda11.tar Copy the algorithm image package and load it.
sudo docker load -i X-Edge-cuda11.tar
- Check and make sure the system time is correct.
Installing X-Edge
- Copy the X-Edge installation package to your server and decompress it.
sudo tar xvf X-EdgeVXXXX-C-XX-XXX.tar
- Enter the directory after decompression, and then access the bin file.
cd X-EdgeVXXXX-C-XX/bin
- Copy env.sh.template file and paste it to be env.sh.
cp env.sh.template env.sh
- Install X-Edge.
bash install.sh
- After installation, you can use
stop.sh
orstart.sh
to disable or enable X-Edge. - Run
uninstall.sh
to uninstall X-Edge when needed.
Accessing X-Edge
Now you can access X-Edge by entering the address http://server IP:8181 in the browser.
Initial username and password are admin and Supedge1234.